package com.sense.cloud;

import tigase.server.Packet;
import tigase.server.xmppserver.S2SConnection;
import tigase.server.xmppserver.S2SConnectionSelector;
import tigase.xmpp.JID;

import java.util.Set;
import java.util.logging.Logger;

public class SenseS2SSelector implements S2SConnectionSelector {

    private static final Logger log = Logger.getLogger(SenseS2SSelector.class.getName());
    @Override
    public S2SConnection selectConnection(Packet packet, Set<S2SConnection> outgoing) {

        System.out.println("selector package : " + packet.toStringFull());
        JID jid = packet.getStanzaTo();

        System.out.println("jid:"+jid);
        JID toJid = packet.getTo();

        System.out.println("toJid:"+toJid);

        return null;
    }
}
